export interface IhospitalListParams {
  page: number
  pageSize: number
  hosname: string
  hoscode: string
  provinceCode: string
  cityCode: string
  districtCode: string
  status: Status
  hostype: string
}

export type Status = 0 | 1

export interface IhospitalListItem {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  hostype: string
  provinceCode: string
  cityCode: string
  districtCode: string
  address: string
  logoData: string
  intro: string
  route: string
  status: Status
  bookingRule: {
    cycle: number
    releaseTime: string
    stopTime: string
    quitDay: number
    quitTime: string
    rule: string[]
  }
}

export type IhospitalListType = IhospitalListItem[]

export interface IhospitalListResponse {
  content: IhospitalListType
  totalElements: number
}

// 省数据接口
export interface Iprovince {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: object
  parentId: number
  name: string
  value: string
  dictCode: null
  hasChildren: boolean
}
export type IprovinceListType = Iprovince[]
